﻿@if (Request.IsAuthenticated) 
{
<div style="margin:-145px 0 0 860px; font-size:14px"  >
    Chào : @Html.ActionLink(@Html.Encode(User.Identity.Name), "Profile","Person")
    <span id="Open-Form-logOut" style="background-image: url('../Images/UserDesign/Bullet.png'); background-position:-8px -5px; cursor:pointer">&nbsp;&nbsp;&nbsp;&nbsp;</span>
</div>
}
else
{
    <div style="margin:-140px 0 0 840px">
        @Html.ActionLink("Đăng Nhập", "Login", "Person",null, new { @style=" color: #676767; padding: 5px 5px; cursor:pointer "})
        <span style=" color: #676767; padding: 5px 5px; ">|</span>
        @Html.ActionLink("Đăng Ký", "Register", "Person",null, new { @style=" color: #676767; padding: 5px 5px; "})
    </div> 
}
<div id="Form-logOut" class="hide">
    @Html.ActionLink("Thông Tin Tài Khoản","Profile","Person")<br />
    @Html.ActionLink("Đổi Mật Khẩu","PasswordChange","Person")<br />
    @Html.ActionLink("Đăng Thông Tin Xe","CreateNewCar","Person")<br />
    @using (Html.BeginForm("LogOff", "Person", FormMethod.Post, new { id = "logoutForm" })) {
            @Html.AntiForgeryToken()
            <a href="javascript:document.getElementById('logoutForm').submit()">Đăng xuất</a>
        }
</div>
